package com.mikufufu.blog.common.constant;

/**
 * Redis常量
 * 
 */
public interface RedisKey {

    /**
     * 博客缓存前缀
     */
    String BLOG = "blog:";

    /**
     * 树缓存前缀
     */
    String TREE = "tree:";

    /**
     * 列表缓存前缀
     */
    String LIST = "list:";

    /**
     * 统计缓存前缀
     */
    String COUNT = "count:";

    /**
     * 系统设置缓存前缀
     */
    String SYS_SETTING = "sys:setting:";

    /**
     * 用户缓存前缀
     */
    String USER = "user:";

    /**
     * 角色缓存前缀
     */
    String ROLE = "role:";

    /**
     * 权限缓存前缀
     */
    String PERMISSION = "permission:";

    /**
     * 存储服务商缓存前缀
     */
    String STORAGE = "storage:";

    /**
     * 导航缓存前缀
     */
    String NAV = "nav:";

    /**
     * 分类缓存前缀
     */
    String CATEGORY = "category:";

    /**
     * token缓存前缀
     */
    String TOKEN = "token:";

    /**
     * 邀请码缓存前缀
     */
    String INVITATION_CODE = "invitation:code:";

    /**
     * 邮件验证码缓存前缀
     */
    String EMAIL_CODE = "mail:code:";

    /**
     * 邮件验证码过期时间缓存前缀
     */
    String EMAIL_CODE_EXPIRATION_TIME = "mail:code:expiration:time:";

    /**
     * 文章缓存前缀
     */
    String ARTICLE = "article:";

    /**
     * 评论缓存前缀
     */
    String COMMENT = "comment:";

    String ARTICLE_COUNT = "blog:article:count";

    String WORD_COUNT = "blog:article:count:word";

    String COMMENT_COUNT = "blog:comment:count";

    String CATEGORY_COUNT = "blog:category:count";

    String VISIT_COUNT = "blog:count:visit";

}
